package com.yc.yyds.dao;

import com.yc.yyds.util.DBHelper;

public class CinemaDao {
    public void create(String cinemaname,String cinemadesc,String seats){
        String sql="insert into cinema (cinemaname,cinemadesc,seats) values (?,?,?)";
        DBHelper.update(sql,cinemaname,cinemadesc,seats);
    }
    public void modify(String cinemaid,String cinemaname,String cinemadesc,String seats){
        String sql="update cinema set cinemaname=?,cinemadesc=?,seats=? where cinemaid=?";
        DBHelper.update(sql,cinemaname,cinemadesc,seats,cinemaid);
    }
    public void remove(String cinemaid){
        String sql="delete from cinema where cinemaid=?";
        DBHelper.update(sql,cinemaid);
    }
}
